package com.hqd.ch03.test.boot.v51;

import com.hqd.ch03.v51.boot.SpringApplication;
import com.hqd.ch03.v51.boot.autoconfigure.AutoConfigurationExcludeFilter;
import com.hqd.ch03.v51.boot.autoconfigure.EnableAutoConfiguration;
import com.hqd.ch03.v51.boot.context.TypeExcludeFilter;
import com.hqd.ch03.v51.context.annotation.ComponentScan;
import com.hqd.ch03.v51.context.annotation.Configuration;
import com.hqd.ch03.v51.context.annotation.FilterType;

@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.hqd.ch03.test.boot.v51",
        excludeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),
                @ComponentScan.Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class)})

public class MainApplication {
    public static void main(String[] args) {
        try {
            System.setProperty("spring.banner.image.location", "file:E:/1.jpg");
            SpringApplication.run(MainApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
